package com.zis.auction.controller;

import com.zis.auction.model.AuctUser;
import com.zis.auction.service.IAuctUserInter;
import com.zis.core.SearchParams;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * Create by wangshen 2018/1/2
 */
@RestController
@RequestMapping("/api/auction/user")
public class AuctUserController {

    @Autowired
    private IAuctUserInter auctUserInter;


    @RequestMapping(value = "/list", method = RequestMethod.POST)
    @ResponseBody
    public PageQuery<AuctUser> findByPage(@RequestBody SearchParams params) throws Exception {
        return auctUserInter.findByPage(params);
    }
}
